﻿///***************************************************************
/// 시  스  템 : Updms.Ref.Exe
/// 단위시스템 : CRD
/// 계      층 : Execute Layer (Relation Transaction)
/// 프로그램명 : Ref1010m_RT
/// 파  일  명 : Ref1010m_RT.cs
/// 설      명 : 활력업소관리
///***************************************************************
/// 수정ID 일자       이름     내용
///---------------------------------------------------------------
/// CH001  2013-03-21 송시명   최초 작성
///***************************************************************
using System.EnterpriseServices;
using System.Runtime.InteropServices;

using SMFramework.Data;

namespace Updms.Ref.Exe
{
	[ComVisible(true)]
	[Transaction(TransactionOption.Required)]
	[JustInTimeActivation(true)]
	public class Ref1010m_RT : Base.AppFramework.RuleBase
	{
		public Ref1010m_RT()
		{
		}

		#region InsertProcess
		/// <summary>
		/// 활력업소 저장
		/// </summary>
		/// <param name="lo_dp"></param>
		/// <returns></returns>
		[AutoComplete]
		public int InsertProcess(DataPack lo_dp)
		{
			_exeTimeLog.Prepare();

			using (Dac.Ref_Dac_UPDMS_REF_SHOP _dac = new Dac.Ref_Dac_UPDMS_REF_SHOP())
			{
				return _dac.Insert(lo_dp);
			}
		}

		#endregion

		#region UpdateProcess
		/// <summary>
		/// 활력업소 수정
		/// </summary>
		/// <param name="lo_dp"></param>
		/// <returns></returns>
		[AutoComplete]
		public int UpdateProcess(DataPack lo_dp)
		{
			_exeTimeLog.Prepare();

			using (Dac.Ref_Dac_UPDMS_REF_SHOP _dac = new Dac.Ref_Dac_UPDMS_REF_SHOP())
			{
				return _dac.Update(lo_dp);
			}
		}

		#endregion

		#region DeleteProcess
		/// <summary>
		/// 활력업소 삭제
		/// </summary>
		/// <param name="ls_xml"></param>
		/// <returns></returns>
		[AutoComplete]
		public int DeleteProcess(string ls_xml)
		{
			_exeTimeLog.Prepare();

			using (Dac.Ref_Dac_UPDMS_REF_SHOP _dac = new Dac.Ref_Dac_UPDMS_REF_SHOP())
			{
				return _dac.Delete(ls_xml);
			}
		}

		#endregion

		#region DeleteAttachFile
		/// <summary>
		/// 활력업소 첨부파일삭제
		/// </summary>
		/// <param name="ls_seq"></param>
		/// <param name="li_file_idx"></param>
		/// <returns></returns>
		[AutoComplete]
		public int DeleteAttachFile(string ls_seq, int li_file_idx)
		{
			_exeTimeLog.Prepare();

			using (Dac.Ref_Dac_UPDMS_REF_SHOP _dac = new Dac.Ref_Dac_UPDMS_REF_SHOP())
			{
				return _dac.DeleteAttachFile(ls_seq, li_file_idx);
			}
		}

		#endregion

		#region SetFavorite
		/// <summary>
		/// 즐겨찾기 설정
		/// </summary>
		/// <param name="lo_dp"></param>
		/// <returns></returns>
		[AutoComplete]
		public int SetFavorite(DataPack lo_dp)
		{
			_exeTimeLog.Prepare();

			using (Dac.Ref_Dac_UPDMS_REF_SHOP _dac = new Dac.Ref_Dac_UPDMS_REF_SHOP())
			{
				return _dac.SetFavorite(lo_dp);
			}
		}

		#endregion

	}
}
